<?php
define('AVATARS_PER_PAGE', 6);

$test = strpos($_SERVER['REQUEST_URI'], 'testapps');
if($test === FALSE) {
  // LIVE
  define('FB_APP_ID', '517451218278711');
  define('FB_APP_SECRET', '95ff2cc1330f805894137cca0552038f');
  define('FB_PAGE_URL', 'https://www.facebook.com/SafenetBG');
}
else {
  // DEMO
  define('FB_APP_ID', '197272447064736');
  define('FB_APP_SECRET', '4a36a24ba982d2a95ca0715d416f5acc');
  define('FB_PAGE_URL', 'https://www.facebook.com/pages/Nari/245612455566680');
}

define('FB_APP_URL', FB_PAGE_URL .'?sk=app_' . FB_APP_ID);
define('FB_PERMISSIONS', '');
define('FB_APP_TITLE', 'ТийНЕТ парламент’13');
define('FB_APP_DESCRIPTION', 'Кандидатирай се за първия по рода си тийн парламент и спечели възможност да отвоюваш онлайн правата на своето поколение в истинска парламентарна битка! Гласувай за най-добрите кандидатури!');
define('FB_SHARE_PIC', base_url() . 'images/share_image.jpg');
$GLOBALS['admins'] = array(
    '1460634311', // https://www.facebook.com/alexander.nenkov
    '734014479',  // https://www.facebook.com/krasimir.markov
    '1406673968', // https://www.facebook.com/romina.kircheva
    '1178182551', // https://www.facebook.com/kristina.dimitrova
    '1295911270', // https://www.facebook.com/luiza.shahbazyan
    '1247629913', // https://www.facebook.com/georgi.apostolov.10
    '100000508431048', // https://www.facebook.com/boris.brestnicki
  );

function curl_get_file_contents($URL) {
  $c = curl_init();
  curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($c, CURLOPT_URL, $URL);
  $contents = curl_exec($c);
  $err  = curl_getinfo($c,CURLINFO_HTTP_CODE);
  curl_close($c);

  if ($contents)
  	return $contents;
  else
  	return FALSE;
}